package com.example.graphqlserver.Entity;

import jakarta.persistence.Entity;
import lombok.Data;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import org.springframework.graphql.data.GraphQlRepository;




/**
 * @author Administrator
 * @see   org.springframework.boot.autoconfigure.graphql.GraphQlAutoConfiguration
 * @see   org.springframework.boot.autoconfigure.graphql
 *
 */
@Entity // This tells Hibernate to make a table out of this class
//@Data
public class User {
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    private Integer id;

    private String name;

    private String email;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
